path bar: Don't segfault if we get disposed quickly
authorMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jan 2015 16:57:10 +0000 (11:57 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Jan 2015 16:57:10 +0000 (11:57 -0500)
commit63bc3542ce5cf5f9e711c8f4caad8a1ee1cf0cb0
tree4d91150b9225bdd0ee1f0b187f88016692dbb7a0
parentcb63fe042eec9dd46139fcd3a5e26da1849e20cd
path bar: Don't segfault if we get disposed quickly

The file chooser code now calls into the path bar in init,
starting an async operation. This unveiled that the path bar
code was not safe against being disposed early, by causing
a crahsh of the objects-finalize test.
Fix this by making the callback check for CANCELLED.
gtk/gtkpathbar.c